#ifndef _HISEG_H_
#define _HISEG_H_

#include "segger.h"

#define SEGER_BUSY		1
#define SEGER_FREE		0

int init(const char * base_path);
int gen_dict(const char * dict_utf8, const char * dict_path);
unsigned long get_segger();
int return_segger(unsigned long key);
int hiseg_do(unsigned long key, char * input, unsigned int len);
int hiseg_next_res(unsigned long key, char * buf, unsigned int buflen);
int destroy();

#endif
